package Model;

public class Resultat implements Comparable<Resultat>{
	public String doc;
	public String path;
	public boolean isAfficher; 
	public boolean isCorrespondant;
	public int poids;
	
	public Resultat(String d,String p, boolean a)
	{
		doc = d;
		path = p;
		isAfficher = a;
	}
	public Resultat()
	{
	}
	public boolean egalByDocPath(Resultat r)
	{
		if (r.doc.equals(doc) & r.path.equals(path))
		{
			return true;
		}
		else
		{
			return false;			
		}
	}
	@Override
	public int compareTo(Resultat arg0) {
		// TODO Auto-generated method stub
		return Integer.compare(poids, arg0.poids);
	}

}
